<!DOCTYPE html>
<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

document.addEventListener("dragover", function () {
    try {
        eventSender.beginDragWithFiles(["resources/empty.html"]);
        console.log("FAIL - nested beginDragWithFiles() expected to throw.");
    } catch (e) {;}
});

eventSender.beginDragWithFiles(["resources/empty.html"]);
eventSender.mouseMoveTo(10, 10);
eventSender.mouseUp();
</script>
<script src="../../resources/js-test.js"></script>
<script>
description('Test that nested use of eventSender.beginDragWithFiles() from within |dragover| is handled without crashing.');
</script>
</body>
